const mongoose = require('mongoose');

const AtomBillSchema = new mongoose.Schema({
   billId: {
      type: mongoose.Types.ObjectId,
      ref: 'Bill',
      required: true,
   },
   group: {
      type: mongoose.Types.ObjectId,
      ref: 'Group',
   },
   user: {
      type: mongoose.Types.ObjectId,
      ref: 'User',
   },
   account: {
      type: Number,
      required: true,
   },
});

module.exports = mongoose.model('AtomBill', AtomBillSchema);
